﻿<wpfui:UiPage
    x:Class="LenovoLegionToolkit.WPF.Pages.AboutPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:resources="clr-namespace:LenovoLegionToolkit.WPF.Resources"
    xmlns:utils="clr-namespace:LenovoLegionToolkit.WPF.Utils"
    xmlns:wpfui="http://schemas.lepo.co/wpfui/2022/xaml"
    Title="{x:Static resources:Resource.AboutPage_Title}"
    FlowDirection="{x:Static utils:LocalizationHelper.Direction}"
    Scrollable="True">

    <StackPanel Margin="0,0,16,12">
        <TextBlock
            Margin="0,16,0,24"
            FontSize="24"
            FontWeight="Medium"
            Text="{x:Static resources:Resource.AboutPage_Title}" />

        <TextBlock
            Padding="0,0,0,8"
            FontSize="16"
            FontWeight="Medium"
            Text="{x:Static resources:Resource.AboutPage_AppName}" />
        <TextBlock
            x:Name="_version"
            Padding="0,0,0,8"
            Text="{x:Static resources:Resource.AboutPage_Version}" />
        <TextBlock
            x:Name="_build"
            Padding="0,0,0,16"
            Text="{x:Static resources:Resource.AboutPage_Build}" />

        <TextBlock x:Name="_copyright" />
        <TextBlock
            x:Name="_translationCredit"
            Padding="0,8,0,0"
            Text="{x:Static resources:Resource.AboutPage_TranslationCredit}" />

        <TextBlock
            Padding="0,24,0,8"
            FontSize="14"
            FontWeight="Medium"
            Text="{x:Static resources:Resource.AboutPage_Links}" />
        <wpfui:Hyperlink
            Content="{x:Static resources:Resource.AboutPage_ProjectWebsiteOnGitHub}"
            Icon="Link24"
            NavigateUri="https://github.com/BartoszCichecki/LenovoLegionToolkit" />
        <wpfui:Hyperlink
            Content="{x:Static resources:Resource.AboutPage_LatestReleaseOnGitHub}"
            Icon="Link24"
            NavigateUri="https://github.com/BartoszCichecki/LenovoLegionToolkit/releases/latest" />

        <TextBlock
            Padding="0,24,0,8"
            FontSize="14"
            FontWeight="Medium"
            Text="{x:Static resources:Resource.AboutPage_ThirdPartyLibraries}" />

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>

            <StackPanel Grid.Column="0" Margin="0,0,32,0">
                <wpfui:Hyperlink Content="Autofac" NavigateUri="https://github.com/autofac/Autofac" />
                <wpfui:Hyperlink Content="AsyncLock" NavigateUri="https://github.com/neosmart/AsyncLock" />
                <wpfui:Hyperlink Content="ColorPicker" NavigateUri="https://github.com/PixiEditor/ColorPicker" />
                <wpfui:Hyperlink Content="CsWin32" NavigateUri="https://github.com/microsoft/CsWin32" />
                <wpfui:Hyperlink Content="Demystifier" NavigateUri="https://github.com/benaadams/Ben.Demystifier" />
                <wpfui:Hyperlink Content="Humanizer" NavigateUri="https://github.com/Humanizr/Humanizer" />
            </StackPanel>
            <StackPanel Grid.Column="1" Margin="0,0,32,0">
                <wpfui:Hyperlink Content="Markdig" NavigateUri="https://github.com/xoofx/markdig" />
                <wpfui:Hyperlink Content="Markdig.Wpf" NavigateUri="https://github.com/Kryptos-FR/markdig.wpf" />
                <wpfui:Hyperlink Content="NAudio.Wasapi" NavigateUri="https://github.com/naudio/NAudio" />
                <wpfui:Hyperlink Content="Newtonsoft.Json" NavigateUri="https://github.com/JamesNK/Newtonsoft.Json" />
                <wpfui:Hyperlink Content="NvAPIWrapper" NavigateUri="https://github.com/falahati/NvAPIWrapper" />
                <wpfui:Hyperlink Content="octokit" NavigateUri="https://github.com/octokit/octokit.net" />
            </StackPanel>
            <StackPanel Grid.Column="2">
                <wpfui:Hyperlink Content="pubsub" NavigateUri="https://github.com/upta/pubsub" />
                <wpfui:Hyperlink Content="TaskScheduler" NavigateUri="https://github.com/dahall/TaskScheduler" />
                <wpfui:Hyperlink Content="WindowsDisplayAPI" NavigateUri="https://github.com/falahati/WindowsDisplayAPI" />
                <wpfui:Hyperlink Content="wpfui" NavigateUri="https://github.com/lepoco/wpfui" />
            </StackPanel>

        </Grid>

        <TextBlock
            Padding="0,24,0,8"
            FontSize="14"
            FontWeight="Medium"
            Text="{x:Static resources:Resource.AboutPage_ApplicationFolders}" />

        <wpfui:Hyperlink
            Click="OpenApplicationDataFolder_Click"
            Content="{x:Static resources:Resource.AboutPage_Data}"
            Icon="Folder24" />
        <wpfui:Hyperlink
            Click="OpenApplicationTempFolder_Click"
            Content="{x:Static resources:Resource.AboutPage_Temp}"
            Icon="Folder24" />

    </StackPanel>
</wpfui:UiPage>
